package com.zy.yun.base.constant;


/**
 * @author : wangyanwei
 * @Date: 2019/3/28 0028 16:02
 * @Description: 返回代码 及 信息
 */
public enum ReturnCodeMsgEnum {

    /**
     * 返回代码 及 信息
     */
    DATA_DELETE_SUCCESS("0","删除成功"),
    DATA_DELETE_FAIL("10000","删除失败"),
    DATA_SELECT_SUCCESS("0","查询成功"),
    DATA_SELECT_FAIL("10001","查询失败"),
    DATA_SAVE_SUCCESS("0","保存成功"),
    DATA_SAVE_FAIL("10002","保存失败"),
    DATA_UPDATE_SUCCESS("0","修改成功"),
    DATA_UPDATE_FAIL("10013","修改失败"),
    DATA_NO_AUTH("10003","没有权限"),

    ACCOUNT_LOGIN_FAIL("11000","登录失败"),
    ACCOUNT_LOGIN_SUCCESS("0","登录成功"),
    ACCOUNT_NO_LOGIN("11001","未登录"),
    ACCOUNT_LOGIN_LIMIT("11002","账户密码错误次数过多"),

    ACCOUNT_NAME_NOT_FIND("11003","帐号名称不存在！"),
    ACCOUNT_LOCK("11004","帐号被锁定"),
    ACCOUNT_NAME_PASSWORD_EROOR("11005","用户名密码错误"),
    ACCOUNT_PHONE_MULTIPLE("11006","本手机号有多人使用"),
    ACCOUNT_PHONE_EXIST("11007","本手机号已经注册"),
    ACCOUNT_PHONE_MISMATCH("11012","本手机号不匹配"),

    SMS_SEND_SUCCESS("11008","本手机号短信发送成功"),
    SMS_SEND_FAIL("11009","本手机号短信发送失败"),

    ACCOUNT_IDENTITY_SUCCESS("11010","用户身份验证成功"),
    ACCOUNT_IDENTITY_FAIL("11011","用户身份验证失败"),


    PARAM_NOT_NULL("12000","参数不能为空"),
    TOKEN_NOT_NULL("12001","token 不能为空"),


    SESSION_INVILID("13000","session 过期，请重新登录!"),
    REDIS_ERROR("14000","redis 错误！"),

    CAPTCHA_NOT_VALIDATE("15000","验证码错误！"),


    ALIPAY_SIGN_NAME_ERROR("16000","支付宝签名失败！"),

    METHOD_NOT_FIND("40404","方法没有找到"),

    SERVER_ERROR("50001","服务异常,请稍后重试！"),
    SERVER_ERROR_NULLPOINTER("50002","空指针异常")

    ;

    private  String code;
    private  String msg;


    ReturnCodeMsgEnum(String code, String msg) {
        this.code=code;
        this.msg=msg;
    }

    public String getMsg() {
        return msg;
    }

    public String getCode() {
        return code;
    }
}
